package com.milk.service;

import com.milk.dto.CommonPageQueryDTO;
import com.milk.entity.Coupon;
import com.baomidou.mybatisplus.extension.service.IService;
import com.milk.result.PageResult;
import com.milk.vo.UserCouponVo;

import java.util.List;

/**
 * <p>
 * 优惠券 服务类
 * </p>
 *
 * @author author
 * @since 2025-03-27
 */
public interface ICouponService extends IService<Coupon> {

    List<UserCouponVo> selectAll();

    List<Coupon> selectIntegral();

    void exchange(Coupon coupon);

    String  exchangeSdk(String  sdk);

    PageResult selectPageQuery(CommonPageQueryDTO dto);

    PageResult selectByIntegral(CommonPageQueryDTO dto);

    void deleteIntegral(Long id);

    PageResult selectBySDK(CommonPageQueryDTO dto);

    void deleteSDK(Long id);

    PageResult selectByNoIntegral(CommonPageQueryDTO dto);

    PageResult selectByNoSDK(CommonPageQueryDTO dto);
}
